<?php

namespace App\Models;


class File extends BaseModel
{
    protected $table = 'files';

    public function productInfo()
    {
        return $this->belongsTo(ProductInfo::class, 'product_id', 'product_id');
    }

    public function product()
    {
        return $this->belongsTo(Product::class, 'product_id', 'id');
    }
}